﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Forms.Depo.Westbrook
{
    public partial class BedenDagilimi : XForm
    {
        string Idxs;
        public BedenDagilimi(string idxs)
        {
            InitializeComponent();
            Idxs = idxs;
        }

        private void BedenDagilimi_Load(object sender, EventArgs e)
        {            
            gvBedenDagilimi.Init("GetDagilimBilgileri", Idxs, chkMagaza.Checked);

            gvBedenDagilimi.AddSummary();
            chkMagaza.CheckedChanged += chkMagaza_CheckedChanged;
            gvBedenDagilimi.ShowOnlyNonblankColumns();
            gvBedenDagilimi.BestFitColumns();

        }

        void chkMagaza_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gvBedenDagilimi.RefreshDataSource("GetDagilimBilgileri", Idxs, chkMagaza.Checked);
        }

    }
}